package com.link2room.jetfire.controller.api;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.jetfire.dto.param.api.ResrvationVerifyMSMApiParamDto;
import com.link2room.jetfire.facade.IResrvationVerifySMSFacadeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 订单查询短信验证
 * Created by LN on 2017/4/28.
 */
@Api(tags = "订单查询短信验证")
@RestController
@RequestMapping("/api/ReservationSMSVerifyCode")
public class ResrvationVerifyMSMApiController {
    @Resource
    private IResrvationVerifySMSFacadeService resrvationVerifySMSFacadeService;

    @ApiOperation(value = "订单查询短信验证")
    @RequestMapping(method = RequestMethod.POST)
    public BaseResultDto newReservation(
            @RequestBody ResrvationVerifyMSMApiParamDto paramDto
    )throws Exception{
        resrvationVerifySMSFacadeService.sendVerifySMSCode(paramDto);
        BaseResultDto l2rRs=new BaseResultDto();
        l2rRs.setResultCode(0);
        return l2rRs;
    }
}
